//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['Jordan Klepper','State Theatre - ME','Portland, ME','Friday','5/3/2024','7:00 PM','6329481','Jordan-Klepper-5-3-2024'],['Rodrigo Y Gabriela','State Theatre - ME','Portland, ME','Saturday','5/4/2024','8:00 PM','6150655','Rodrigo-Y-Gabriela-5-4-2024'],['The Front Bottoms','State Theatre - ME','Portland, ME','Thursday','5/9/2024','8:00 PM','6322134','The-Front-Bottoms-5-9-2024'],['The Fogcutters','State Theatre - ME','Portland, ME','Friday','5/10/2024','8:00 PM','6286092','The-Fogcutters-5-10-2024'],['Avatar','State Theatre - ME','Portland, ME','Tuesday','5/14/2024','7:30 PM','6262148','Avatar-5-14-2024'],['Gimme Gimme Disco','State Theatre - ME','Portland, ME','Friday','5/17/2024','8:30 PM','6391986','Gimme-Gimme-Disco-5-17-2024'],['String Cheese Incident','State Theatre - ME','Portland, ME','Sunday','5/19/2024','7:00 PM','6216947','String-Cheese-Incident-5-19-2024'],['Amos Lee & Julia Pratt','State Theatre - ME','Portland, ME','Saturday','5/25/2024','8:00 PM','6317743','Amos-Lee---Julia-Pratt-5-25-2024'],['Buckethead','State Theatre - ME','Portland, ME','Monday','5/27/2024','8:00 PM','6362935','Buckethead-5-27-2024'],['Baroness','State Theatre - ME','Portland, ME','Friday','5/31/2024','8:00 PM','6395738','Baroness-5-31-2024'],['Charley Crockett','State Theatre - ME','Portland, ME','Saturday','6/1/2024','8:00 PM','6227117','Charley-Crockett-6-1-2024'],['Hasan Minhaj','State Theatre - ME','Portland, ME','Wednesday','6/5/2024','8:00 PM','6372401','Hasan-Minhaj-6-5-2024'],['Dave Attell','State Theatre - ME','Portland, ME','Saturday','6/8/2024','8:00 PM','6365123','Dave-Attell-6-8-2024'],['Justin Willman','State Theatre - ME','Portland, ME','Friday','6/28/2024','7:00 PM','6374851','Justin-Willman-6-28-2024'],['Kathleen Madigan','State Theatre - ME','Portland, ME','Saturday','6/29/2024','7:00 PM','6266309','Kathleen-Madigan-6-29-2024'],['The Used','State Theatre - ME','Portland, ME','Wednesday','7/3/2024','7:00 PM','6330071','The-Used-7-3-2024'],['Umphrey's McGee','State Theatre - ME','Portland, ME','Saturday','7/6/2024','8:30 PM','6329807','Umphrey-s-McGee-7-6-2024'],['Trey Kennedy','State Theatre - ME','Portland, ME','Thursday','7/11/2024','7:30 PM','6320964','Trey-Kennedy-7-11-2024'],['Jeff Arcuri','State Theatre - ME','Portland, ME','Saturday','7/13/2024','7:00 PM','6304276','Jeff-Arcuri-7-13-2024'],['Jeff Arcuri','State Theatre - ME','Portland, ME','Saturday','7/13/2024','9:30 PM','6307102','Jeff-Arcuri-7-13-2024'],['Old Crow Medicine Show','State Theatre - ME','Portland, ME','Friday','7/19/2024','8:00 PM','6303444','Old-Crow-Medicine-Show-7-19-2024'],['The Crane Wives','State Theatre - ME','Portland, ME','Saturday','7/20/2024','8:00 PM','6342553','The-Crane-Wives-7-20-2024'],['Jerry Harrison','State Theatre - ME','Portland, ME','Thursday','8/1/2024','8:00 PM','6162744','Jerry-Harrison-8-1-2024'],['The Struts & Barns Courtney','State Theatre - ME','Portland, ME','Tuesday','8/6/2024','8:00 PM','6369893','The-Struts---Barns-Courtney-8-6-2024'],['Guster On The Ocean','State Theatre - ME','Portland, ME','Friday','8/9/2024','8:00 PM','6357916','Guster-On-The-Ocean-8-9-2024'],['Dweezil Zappa','State Theatre - ME','Portland, ME','Saturday','8/24/2024','8:00 PM','6319096','Dweezil-Zappa-8-24-2024'],['Waxahatchee','State Theatre - ME','Portland, ME','Friday','8/30/2024','7:15 PM','6206017','Waxahatchee-8-30-2024'],['Built To Spill','State Theatre - ME','Portland, ME','Sunday','9/1/2024','8:00 PM','6362166','Built-To-Spill-9-1-2024'],['Bikini Kill','State Theatre - ME','Portland, ME','Friday','9/6/2024','8:00 PM','6249683','Bikini-Kill-9-6-2024'],['Sierra Ferrell','State Theatre - ME','Portland, ME','Thursday','9/12/2024','8:00 PM','6398174','Sierra-Ferrell-9-12-2024'],['Glen Hansard','State Theatre - ME','Portland, ME','Saturday','9/14/2024','8:00 PM','6328146','Glen-Hansard-9-14-2024'],['Angel Olsen','State Theatre - ME','Portland, ME','Wednesday','9/25/2024','8:00 PM','6384681','Angel-Olsen-9-25-2024'],['Hatebreed','State Theatre - ME','Portland, ME','Thursday','9/26/2024','7:00 PM','6329607','Hatebreed-9-26-2024'],['Briston Maroney','State Theatre - ME','Portland, ME','Tuesday','10/1/2024','8:00 PM','6414978','Briston-Maroney-10-1-2024'],['Marcus King','State Theatre - ME','Portland, ME','Wednesday','10/9/2024','8:00 PM','6257099','Marcus-King-10-9-2024'],['Ricky Montgomery','State Theatre - ME','Portland, ME','Tuesday','10/15/2024','8:00 PM','6398984','Ricky-Montgomery-10-15-2024'],['Sheng Wang','State Theatre - ME','Portland, ME','Thursday','10/17/2024','8:00 PM','6358974','Sheng-Wang-10-17-2024'],['Girls Gotta Eat','State Theatre - ME','Portland, ME','Thursday','10/24/2024','8:00 PM','6354201','Girls-Gotta-Eat-10-24-2024'],['The Dead South','State Theatre - ME','Portland, ME','Friday','10/25/2024','8:00 PM','6215500','The-Dead-South-10-25-2024'],['Sammy Rae','State Theatre - ME','Portland, ME','Saturday','11/2/2024','8:00 PM','6328552','Sammy-Rae-11-2-2024'],['Ryan Hamilton','State Theatre - ME','Portland, ME','Friday','11/22/2024','8:00 PM','6319322','Ryan-Hamilton-11-22-2024'],['The Lox','State Theatre - ME','Portland, ME','Friday','12/6/2024','8:30 PM','6357147','The-Lox-12-6-2024']],'State Theatre Portland Maine','http://www.ticketnetwork.com/ticket/State-Theatre-Portland-Maine-events.aspx');